//@author A0081058H
package net.mysoc.w111j.ui.validation;


/**
 * Validation message. Contains the validation state and validation message.
 */
public class ValidationMessage {
    final String message;
    final ValidationState state;

    public ValidationMessage() {
        this.message = "No validation errors";
        this.state = ValidationState.OK;
    }

    public ValidationMessage(ValidationState state, String message) {
        this.message = message;
        this.state = state;
    }

    public String getMessage() {
        return this.message;
    }

    public ValidationState getState() {
        return this.state;
    }
}
